package com.ruoyi.student.api.factory;


import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.common.core.web.page.TableDataInfo;
import com.ruoyi.student.api.RemoteStudentService;
import com.ruoyi.student.api.domain.SysStudent;
import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.stereotype.Component;

import java.util.List;


/**
 * 学生服务调用回退数据
 *
 * @author xsw
 * @date 2024/03/23
 */
@Component
public class RemoteStudentFallbackFactory implements FallbackFactory<RemoteStudentService> {
    @Override
    public RemoteStudentService create(Throwable cause) {
        return new RemoteStudentService() {
            @Override
            public TableDataInfo getStudentByClassId(Long classId) {
                return null;
            }

            @Override
            public TableDataInfo unemployedStudentList() {
                return null;
            }

            @Override
            public AjaxResult changeStatusById(Long studentId) {
                return null;
            }

            @Override
            public List<SysStudent> getStudentList() {
                return null;
            }
        };
    }
}
